package com.jerome.rmi;

import java.rmi.AlreadyBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * The default remote service for dynamically registering Calculator
 * @author jerome
 * @date 2023/7/29
 */
public interface RemoteDefault extends Remote {
    /**
     * Sign up for a new Calculator service
     * @author jerome
     * @date 2023/7/29 11:06
     */
     String registerNew() throws RemoteException, AlreadyBoundException;
    /**
     * Sign up for a default Calculator service
     *
     * @author jerome
     * @date 2023/7/29 11:06
     */
    String registerDefault() throws RemoteException, AlreadyBoundException;

}
